import { defineStore } from 'pinia'

import type { SettingStore } from './types/type'
const useSettingStore = defineStore('Setting', {
  state(): SettingStore {
    return {
      fold: false, // 是否折叠菜单
      refresh: false, // 是否刷新组件
    }
  },
  actions: {
    changeFold() {
      this.fold = !this.fold
    },
    changeRefresh() {
      this.refresh = !this.refresh
    },
  },
  getters: {},
})

export default useSettingStore
